package org.jeecg.cn.edu.scau.vm.node.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 仅存储几个关键的字段
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class VmContainerVo {
    /**
     * 容器ID
     */
    private String containerId;
    /**
     * 容器名称
     */
    private String name;

    /**
     * 枚举值value
     */
    private String containerStatusName;

    /**
     * 容器对应的状态类型
     */
    private String containerStatusType;
    /**
     * 容器描述
     */
    private String containerDesc;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
